const { defineConfig } = require('@vue/cli-service');
const path = require('path');

module.exports = defineConfig({
  transpileDependencies: true,
  // lintOnSave:false,
  configureWebpack: {
    resolve: {
      fallback: {
        "querystring": require.resolve("querystring-es3")
      }
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:7799',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
});